package com.aspose.cells.a.d;

import com.aspose.cells.Color;

public class zbp implements zbh {
   private long a;
   private int b = 0;
   private Color c = Color.getWhite();
   private Color d = Color.getEmpty();
   private int e = 0;
   private com.aspose.cells.b.a.b.zc f;
   private com.aspose.cells.b.a.b.zj g;
   private int h;

   public void a(zcm var1) throws Exception {
      this.b = var1.n();
      this.c = var1.e();
      this.e = var1.n();
   }

   public void b(zcm var1) throws Exception {
      this.b = 240;
      this.h = 0;
      this.g = (com.aspose.cells.b.a.b.zj)com.aspose.cells.b.a.zl.a(com.aspose.cells.b.a.b.zj.a(var1.k()), com.aspose.cells.b.a.b.za.class);
   }

   public void c(zcm var1) throws Exception {
      this.b = 240;
      this.h = 0;
      int var2 = (int)(var1.k().h() - var1.k().i());
      this.g = zbn.a((com.aspose.cells.b.a.d.za)var1, var2);
   }

   public void a(zcf var1) throws Exception {
      this.a = var1.r();
      this.b = (int)(var1.r() & 4294967295L);
      this.c = var1.e();
      this.e = var1.q();
   }

   public void b(zcf var1) throws Exception {
      this.a = var1.r();
      this.b = 240;
      this.h = 0;
      var1.q();
      int var2 = var1.q();
      int var3 = var1.q();
      int var4 = var1.q();
      int var5 = var1.q();

      try {
         var1.k().b(var1.k().i() - 16L - 16L + (long)var2);
         this.g = zbn.b(var1, var3, var5);
      } catch (Exception var7) {
         ;
      }

   }

   public com.aspose.cells.b.a.b.zc a(com.aspose.cells.b.a.b.a.zi var1) {
      switch(this.b) {
      case 0:
         this.f = new com.aspose.cells.b.a.b.zu(this.c);
         break;
      case 1:
         return null;
      case 2:
         this.f = new com.aspose.cells.b.a.b.a.zg(this.e, this.c, this.d);
      case 3:
      case 4:
      case 5:
      case 6:
      case 7:
      case 8:
      case 9:
      default:
         break;
      case 240:
         if (this.g == null) {
            return null;
         }

         this.f = new com.aspose.cells.b.a.b.zx(this.g);
         ((com.aspose.cells.b.a.b.zx)this.f).b(var1);
         ((com.aspose.cells.b.a.b.zx)this.f).a(this.h);
      }

      return this.f;
   }

   public int a() {
      return 1;
   }

   public long b() {
      return this.a;
   }

   public void a(long var1) {
      this.a = var1;
   }

   public int c() {
      return this.b;
   }

   public void a(int var1) {
      this.b = var1;
   }

   public void a(Color var1) {
      this.c = var1;
   }

   public void b(Color var1) {
      this.d = var1;
   }
}
